Import('env')

if env.Dictionary()['PROGSUFFIX'] == '.exe':
    bld_action = '/msys/1.0/local/bin/protoc.exe --cpp_out=. $SOURCES'
else:
    bld_action = 'protoc --cpp_out=. $SOURCES'

bld = Builder(action=bld_action)
env.Append(BUILDERS={'protoc' : bld})
env.protoc('database.pb.cc', 'database.proto')
env.protoc('database.pb.h', 'database.proto')
